<template>
    <van-tabbar v-model="active" active-color="red" inactive-color="blue">
        <van-tabbar-item icon="home-o">首页</van-tabbar-item>
        <van-tabbar-item icon="search" dot>商城</van-tabbar-item>
        <van-tabbar-item icon="friends-o" badge="99+">消息</van-tabbar-item>
        <van-tabbar-item icon="setting-o">我的</van-tabbar-item>
    </van-tabbar>
</template>

<script setup>
import { ref } from 'vue';
const active = ref(0);
</script>

<style></style>